package edu.sctu.xuping.month05.day20150505;

/**
 * Created by Administrator on 2015/5/6.
 */
public class PrintfAanser {
    public static void main(String[] args) {
        Dog1 dog1 = new Dog1(new CreateKou() {
            @java.lang.Override
            public void getFor(String action, int size, String color) {
                System.out.println(action);
                System.out.println(size);
                System.out.println(color);
            }
        });
        dog1.getAction();
        dog1.getSize();
        dog1.getColor();
        dog1.getValue();
        Dog2 dog2 = new Dog2(new CreateKou() {
            @java.lang.Override
            public void getFor(String action, int size, String color) {
                System.out.println(action);
                System.out.println(size);
                System.out.println(color);
            }
        });
        dog2.getAction();
        dog2.getSize();
        dog2.getColor();
        dog2.getValue();
    }
}